#define _CRT_SECURE_NO_WARNINGS 1


#include<iostream>

using namespace std;

int main()
{
	int n = 0, m = 0;
	while (cin >> n >> m)
	{
		int cock = 0, rabbit = 0;
		if (m - (2 * n) < 0 || (m - (2 * n)) % 2 != 0)
		{
			cout << "No answer" << endl;
			continue;
		}
		if ((4 * n - m) / 2 > n || (4 * n - m) % 2 != 0)
		{
			cout << "No answer" << endl;
			continue;
		}
		rabbit = (m - 2 * n) / 2;
		cock = n - rabbit;
		cout << cock << ' ' << rabbit << endl;
	}

	return 0;
}